package com.qaml.mes.device.domain.convert;

import com.qaml.mes.device.dao.EqpAttachmentDO;
import com.qaml.mes.device.dto.eqp.EqpAttachmentDTO;
import com.qaml.mes.device.vo.eqp.EqpAttachmentVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ClassName EqpAttachmentConvert
 * @Description 设备附件
 * @Author leikai
 * @Date 2024/2/27 0027 11:10
 * @Version 1.0
 */
@Mapper
public interface EqpAttachmentConvert {

    EqpAttachmentConvert INSTANCE = Mappers.getMapper(EqpAttachmentConvert.class);

    EqpAttachmentVO do2Vo(EqpAttachmentDO eqpAttachmentDO);

    /**
     * DO对象列表转换为VO对象列表
     *
     * @param eqpAttachmentDOList
     * @return
     */
    List<EqpAttachmentVO> toVOList(List<EqpAttachmentDO> eqpAttachmentDOList);

    EqpAttachmentDO saveDTO(EqpAttachmentDTO eqpAttachmentDTO);

    List<EqpAttachmentDO> dto2DOList(List<EqpAttachmentDTO> eqpAttachmentDTOList);
}